import React from "react";
import ctx from "./update/ctx";
import SwitchTimer2 from "./SwitchTimer2";

export default function SwitchTimerButton2() {
    let { stateObj, update } = React.useContext(ctx);
    return (
        <button onClick={() => SwitchTimer2(stateObj, update)}>切换刷新时间</button>
    )
}